package com.eas.biz.dao.examResultDetail.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.examResultDetail.dataobject.ExamResultDetailDO;
import com.eas.biz.dao.examResultDetail.interfaces.ExamResultDetailDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("examResultDetailDao")
public class ExamResultDetailDaoImpl extends GenericDaoImpl<ExamResultDetailDO> implements
        ExamResultDetailDao {

    public ExamResultDetailDO selectById(long id) {
        return selectById("ExamResultDetail.selectById", id);
    }

    public long insert(ExamResultDetailDO examResultDetail) {
        return insert("ExamResultDetail.insert", examResultDetail);
    }

    public int deleteById(long id) {
        return deleteById("ExamResultDetail.deleteById", id);
    }

    public int update(ExamResultDetailDO examResultDetail) {
        return update("ExamResultDetail.update", examResultDetail);
    }

    public List<ExamResultDetailDO> selectByQuery(BaseQuery query) {
        return selectByQuery("ExamResultDetail.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("ExamResultDetail.countByQuery", query);
    }

}
